package com.zyy.ui.utils;


import java.util.Collection;

/**
 * @ClassName: CollectionUtil
 * @Description: 集合公共处理类
 * @Author: zyy
 * @Date: 2020/04/25 18:36
 * @Version: 1.0
 */
public class CollectionUtil {

    public static boolean isEmpty(Collection<?> collection) {
        return collection == null || collection.isEmpty();
    }

    public static boolean isNotEmpty(Collection<?> collection) {
        return collection != null && !collection.isEmpty();
    }
}
